

**Figure 1a***
svyset [pw=wgt]
svy: proportion best
svy: proportion worst
svy: proportion trump

***Figure 1b***
*standard error for trump-worst
dis sqrt(((.53*.47)/901)+((.45*.55)/899))
*standard error for best-worst
dis sqrt(((.53*.47)/1654)+((.45*.55)/899))

svy: tab protrumpchg

***Figure 2***
svy: tab protrumpchg rep3, cell

svy: tab protrumpchg rep3 if likely==0, cell
svy: tab protrumpchg rep3 if likely==1, cell

svy: tab protrumpchg rep3 if dkintent==0, cell
svy: tab protrumpchg rep3 if dkintent==1, cell

svy: tab likely



tab chg [iw=wgt]


***Table 1***
svy: mlogit protrumpchg   trumpfriends trumpcommunity trumpstate

svy: mlogit protrumpchg   trumpfriends rep3 male age south attend hisp black educ married inc 

mchange,amount(all)



svy: mlogit protrumpchg bdummyfriends if rep==1
mchange,amount(all)
svy: mlogit protrumpchg tdummyfriends if dem==1
mchange,amount(all)



svy: mlogit protrumpchg bidenfriends male age south attend hisp black educ married inc if rep==1
mchange,amount(all)
svy: mlogit protrumpchg trumpfriends male age south attend hisp black educ married inc if dem==1
mchange,amount(all)

svy: tab tdummyfriends if rep3==1
 
svy: tab bdummyfriends if rep3==3

gen rep=rep3
recode rep 1 2=0 3=1

***Table 2***
svy: logit crossed   c.rep##c.trumpfriends if rep3!=2
svy: logit crossnochg   c.rep##c.trumpfriends if rep3!=2
svy: logit crossedboth   c.rep##c.trumpfriends if rep3!=2

svy: logit crossed   c.rep##c.trumpfriends durationinseconds if rep3!=2
svy: logit crossnochg   c.rep##c.trumpfriends durationinseconds if rep3!=2
svy: logit crossedboth   c.rep##c.trumpfriends durationinseconds if rep3!=2

***Table 3***
svy: logit diff crossedboth
svy: logit diff crossedboth dem indep  male age south attend hisp black educ married inc bprot cath evan jew main other 
svy: logit diffthanpid crossedboth if rep3!=2
svy: logit diffthanpid crossedboth dem  male age south attend hisp black educ married inc bprot cath evan jew main other if rep3!=2

***Figure 3***
svy: tab diff diffthanpid if crossedboth==1, cell
svy: tab diff diffthanpid, cell

svy: proportion diff if crossedboth==1
svy: proportion diffthanpid if crossedboth==1
fin 

svy: tab protrumpchg dkintent, cell

fin 
